import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int huaweicount;
        int xiaomicount;
        double huaweiTotal;
        double xiaomiTotal;
        int total;
        double totalmoney;

        String huaweiBrand = "华为";
        String xiaomiBrand = "小米";
        double huaweiSize = 6.0;
        double xiaomiSize = 3.0;
        double huaweiPrice = 5999;
        double xiaomiPrice = 4999;
        String huaweiConfig = "8+256 全面屏";
        String xiaomiConfig = "8+256 全面屏";

        System.out.println("品牌型号"+huaweiBrand);
        System.out.println("尺寸"+huaweiSize);
        System.out.println("价格"+huaweiPrice);
        System.out.println("配置"+huaweiConfig);

        System.out.println("请输入"+huaweiBrand+"手机的库存");
        Scanner sc = new Scanner(System.in);
        huaweicount=sc.nextInt();
        huaweiTotal=huaweicount*huaweiPrice;
        System.out.println(huaweiBrand+"的库存"+"总额为"+huaweiTotal);

        System.out.println("品牌型号"+xiaomiBrand);
        System.out.println("尺寸"+xiaomiConfig);
        System.out.println("价格"+xiaomiPrice);
        System.out.println("配置"+xiaomiConfig);

        System.out.println("请输入"+xiaomiBrand+"手机的库存");
        xiaomicount=sc.nextInt();
        xiaomiTotal=xiaomicount*xiaomiPrice;
        System.out.println(xiaomiBrand+"的库存"+"总额为"+xiaomiTotal);

        System.out.println("-----------------------------库存清单-----------------------------");
        System.out.println("品牌     尺寸     价格     配置     库存数量     总价     ");
        System.out.println(huaweiBrand+huaweiSize+huaweiPrice+huaweiConfig+huaweiConfig+huaweiTotal);
        System.out.println(xiaomiBrand+xiaomiSize+xiaomiPrice+xiaomiConfig+xiaomiConfig+xiaomiTotal);
        System.out.println("-----------------------------------------------------------------");

        total = huaweicount+xiaomicount;
        totalmoney=huaweiTotal+xiaomiTotal;

        System.out.println("总库存"+total);
        System.out.println("库存价格"+totalmoney+"￥");

    }
}